/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.hycreate.platform.modules.crm.findcustomer;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.hycreate.platform.common.persistence.CrudDao;
import com.hycreate.platform.common.persistence.annotation.MyBatisDao;

/**
 * 客户查询DAO接口
 * 
 * @author 方志钧
 * @version 2016-12-05
 */
@MyBatisDao
public interface FindCustomerDao extends CrudDao<FindCustomer> {

	List<String> findAllNames();

	List<FindCustomer> findSomCustomersByNI(FindCustomer findCustomer);
	

	void deleteIndustry(@Param(value="customerId")String customerId,@Param(value="industryId")String industryId);

	void addIndustryForCustomer(@Param(value="id")String uuid, @Param(value="c_id")String customerId,
			@Param(value="i_id")String industryId);

	int isExist(@Param("c_id")String customerId, @Param("i_id")String industryId);

	List<FindCustomer> findMyCollectCustomer(String userId);

	List<ExcelCustomerMould> findListByIds(@Param("custoemrIds")String[] custoemrIds);

	void cacleCollect(@Param("userId")String userId, @Param("customerId")String customerId);

	String getCustomerCollecterId(String customerId);

	String alreadyCollect(String customerId);

	void addMyCustomer(@Param("id") String id, @Param("userId") String userId, @Param("customerId") String customerId);


	public void updateLastContant(String customerId);
	
	public void delCustomerContant(@Param("contactid")  String contactid);
	
}